﻿#ifndef SAVEPROJECT_H
#define SAVEPROJECT_H

#include <QDialog>
#include <QJsonArray>
#include <QJsonObject>

namespace Ui {
class SaveProject;
}

class SaveProject : public QDialog
{
    Q_OBJECT

public:
    explicit SaveProject(QWidget *parent = nullptr);
    ~SaveProject();

    void setConfigInfo(const QJsonArray &config);

signals:
    void newProject(const QString&);
    void chooseProject(const QString&);

private slots:
    void on_pushButton_clicked();

    void on_buttonBox_accepted();

private:
    Ui::SaveProject *ui;

    QJsonArray m_config;
};

#endif // SAVEPROJECT_H
